package com.zdy.bean;

import java.applet.Applet;
import java.awt.Graphics;
import java.util.Random;

public class AppletTest extends Applet {
	
	private String result;
	private int x;
	private int y;
	
	public void init(){
		super.init();
		x=Integer.valueOf(this.getParameter("x"));
		y=Integer.valueOf(this.getParameter("y"));
		Random random=new Random();
		
		for(int i=0;i<4;i++){
			int start=random.nextInt(10);
			result=result+Integer.toString(start);
		}
	}
	
	public void paint(Graphics g){
		g.drawString(result, x, y);
	}

}
